package org.lys.web.tag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyContent;
import javax.servlet.jsp.tagext.BodyTag;
import javax.servlet.jsp.tagext.BodyTagSupport;
import javax.servlet.jsp.tagext.IterationTag;
import javax.servlet.jsp.tagext.Tag;
import javax.servlet.jsp.tagext.TagSupport;
/**
 * @Description:修改Jsp内容
 * @Copyright: 福州骏华信息有限公司 (c)2013
 * @Created Date : 2013-4-6
 * @Author lys
 */
public class TagDemo4 extends BodyTagSupport{
	@Override
	public int doStartTag() throws JspException {
		return BodyTag.EVAL_BODY_BUFFERED;
	}

	@Override
	public int doEndTag() throws JspException {
		BodyContent body = this.getBodyContent();
		try {
			this.pageContext.getOut().print(body.getString()+"lys");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return Tag.EVAL_PAGE;
	}
}
